/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-03<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-03<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "SYS_USER_PRIV_INFO")
public class SysUserPrivInfo {

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "PRIV_ID")
    private Long privId;
    
    @Column(name = "ROLE_ID")
    private Long roleId;
    
    @Column(name = "PAGE_ID")
    private String pageId;

    public Long getPrivId() {
        return privId;
    }

    public void setPrivId(Long privId) {
        this.privId = privId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }

    public SysUserPrivInfo() {
    }

    public SysUserPrivInfo(Long privId, Long roleId, String pageId) {
        this.privId = privId;
        this.roleId = roleId;
        this.pageId = pageId;
    }
    
    
    

    public SysUserPrivInfo(Long roleId, String pageId) {
        this.roleId = roleId;
        this.pageId = pageId;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("{\"privId\":");
        builder.append(privId);
        builder.append(", \"roleId\":");
        builder.append(roleId);
        builder.append(", \"pageId\":");
        builder.append(pageId);
        builder.append("}");
        return builder.toString();
    }
    
    
    
    
    
}
